<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@page import="com.ks.app.admin.hibernate.KsOperaterLog"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ include file="/commons/taglibs.jsp" %>
<%@ page import="java.util.*" %>
<html>
<head>
 	   <link href="${css}/Public.css" type="text/css" rel="stylesheet" />
       <link href="${css}/PublicEdit.css" type="text/css" rel="stylesheet" /> 
      
<title>日志信息 </title>
	
</head>
<body>

	<% 
				KsOperaterLog a = (KsOperaterLog)request.getAttribute("log");  
				SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
				long id = 0l;
				String opename = "";			
				int status  = 1;
				String operater ="";
				String content ="";
				String logtime ="";
				int logtype =1;

				if(a != null){
					id = a.getId();
					opename = a.getOpename();
					status = a.getStatus();
					operater = a.getOperater();
					content = a.getContent();
					logtime = sdf.format(a.getLogtime());
					logtype = a.getLogtype();
				}
				
	%>
	
<form action="ks_check_log" method="post">

  				<input type="hidden" id="id" name="id" value="<%=id%>""/>
  				<input type="hidden" name="pno" value="${pno}"/>
  				<input type="hidden" name="opename" value="${opename}"/>
  				<input type="hidden" name="logtype" value="${logtype}"/>
  				<input type="hidden" name="logtime" value="${logtime}"/>
  				<input type="hidden" name="status" value="${status}"/>
  				
  				
  				<div>
		                <div class="l_f_top">
		                    <div class="l_f_top_left_div"><img alt="" src="${images}/tb.gif" width="16" height="16" /></div>
		                    <div class="l_f_top_right_div">日志信息        </div>
		                </div>
		                <div class="l_f_body"> 
		                      
		                     <div class="l_f_body_row">
		                        <div class="l_f_body_div1">                           日志类型:</div>
		                        <div class="l_f_body_div5">		                        
		                        	<input type="radio"  value="1" <%=(logtype==1)?"checked='checked'":"" %>/> 操作日志 
	    							<input type="radio"  value="2" <%=(logtype==2)?"checked='checked'":"" %>/> 异常日志	    						
					           </div>                      
		                    </div>	
		                	<div class="l_f_body_row">
		                        <div class="l_f_body_div1">                           操作者:</div>
		                        <div class="l_f_body_div5">
				                       <input type="text"  value="<%=operater==null?"":operater%>" style="width:120px"/>  
					           </div>                      
		                    </div>	
		                  	<div class="l_f_body_row">
		                        <div class="l_f_body_div1">                            操作描述:</div>
		                        <div class="l_f_body_div5">
				                       <input type="text"  value="<%=opename==null?"":opename%>" style="width:120px"/>  
					           </div>                      
		                    </div>	  		
		                    <div class="l_f_body_row">
		                        <div class="l_f_body_div1">                            日志内容:</div>
		                        <div class="l_f_body_div5">
				               		<textarea rows="8" cols="60"><%=content==null?"":content %></textarea>
					           </div> 
					        </div> 
		                     <div class="l_f_body_row">
		                        <div class="l_f_body_div1">                            操作时间:</div>
		                        <div class="l_f_body_div5">
				               		<input type="text"  value="<%=logtime%>" style="width: 132px"" >
					           </div>       
		                     <div class="l_f_body_row">
		                        <div class="l_f_body_div1">                            日志状态:</div>
		                        <div class="l_f_body_div5" >
		               		     	<input type="radio"  value="1" <%=(status==1)?"checked='checked'":"" %>/> 未处理 
	    							<input type="radio"  value="2" <%=(status==2)?"checked='checked'":"" %>/> 已处理	
							   </div>
		                    </div>
		                     <div class="center l_f_body_foot">			                     
		                       <input type="submit" id="button" name="button" class="button2_60" onclick="checkData();"  value="审核"/>		                      
		                       <input type="button" class="button2_60"  onclick="javascript:history.go(-1);" value=" 返回"/> 
		                 </div>
		                </div>
			    	</div> 
			   </div>
</form>
</body>
</html>